﻿using BCCommon;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.Common.Banner
{
    /// <summary>
    /// Banner分类编码请求模型
    /// </summary>
    public class BannerTagcodeRequestDto
    {
        /// <summary>
        /// Banner分类编码
        /// </summary>
        [Display(Name = "Banner分类编码")]
        [Required(ErrorMessage = "{0} 不能为空。")]
        [StringLength(50, MinimumLength = 1, ErrorMessage = "{0} 应为 {2} 至 {1} 个字母或数字。")]
        [RegularExpression(RegexPatterns.ENGLISH_AND_NUMBER, ErrorMessage = "{0} 应为字母或数字。")]
        public string BannerTagcode { get; set; }
        /// <summary>
        /// Banner分类编码说明
        /// </summary>
        [Display(Name = "Banner分类编码说明")]
        [Required(ErrorMessage = "{0} 不能为空。")]
        public string Description { get; set; }
        /// <summary>
        /// 系统分类编码
        /// </summary>
        public bool IsSystem { get; set; }
    }
}
